//
//  CalculaNextCell.m
//  AntsExpress
//
//  Created by slccper on 16/1/16.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "CalculaNextCell.h"
#import "AddressViewController.h"
@implementation CalculaNextCell

- (void)awakeFromNib {
    self.lbTitle.layer.borderColor=[UIColor redColor].CGColor;
    self.lbTitle.layer.borderWidth=1;
    self.lbTitle.layer.cornerRadius=2;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setDataWith:(NSDictionary *)calcula{
    self.calcula =calcula;
    [self.lbTitle setTitle:[calcula objectForKey:@"Name"] forState:UIControlStateNormal];
    
}
- (IBAction)NextAction:(id)sender {
    AddressViewController *add = [[AddressViewController alloc]initWithNibName:@"AddressViewController" bundle:nil];
    add.dic=self.calcula;
    add.isBack=YES;
    [self.parentViewController.navigationController pushViewController:add animated:YES];
}

@end
